Link to this headingGPS
Off the shelf GPS are supposed to not work beyond a certain height 18,000 m and/or speed 515 m/s to be a barrier for use as a weapon
https://github.com/osqzss/gps-sdr-sim
Using Partial GPS information to get better tracking in an Urban Area
GPS Receiver
https://lea.hamradio.si/~s53mv/navsats/theory.html
http://www.aholme.co.uk/GPS/Main.htm
https://www.telesens.co/2017/07/17/calculating-position-from-raw-gps-data/ GPS Math
Link to this headingMessages
Link to this headingAssisted GPS
Because getting GPS position data from the Satellites is slow most phones get the Satellite position data from the internet.
Link to this headingSatellites
Link to this headingUS
Block IIR:
- IIR-2
- IIR-4
- IIR-5
- IIR-8
- IIR-9
- IIR-11
Block IIR-M:
- IIRM-1
- IIRM-2
- IIRM-3
- IIRM-4
- IIRM-5
- IIRM-6
- IIRM-8
Block IIF:
- IIF-1
- IIF-3
- IIF-4
- IIF-5
- IIF-6
- IIF-7
- IIF-8
- IIF-9
- IIF-10
- IIF-12
GPS III:
- III-1
- III-2
- III-3
- III-4
- III-5
- III-6
Link to this headingMath
Test Example:
# Function to compute residuals (differences between observed and calculated distances)
, , , = # Position of the receiver and clock error
= + *
return -
# Convert (x, y, z) ECEF universe coordinates to Earth Latitude, Longitude, and Altitude (LLA)
# WGS-84 ellipsoid constants
= 6378137.0 # Semi-major axis in meters
= 8.1819190842622e-2 # Eccentricity
# Calculate longitude
=
# Iterative calculation for latitude and altitude
=
=
# Iteratively improve latitude calculation
= /
= / -
=
# Convert from radians to degrees
=
=
return , ,
= 299792458 # Speed of light in meters per second
# Example satellite positions (x, y, z in meters)
=
# Simulated time delays from each satellite to receiver (in seconds)
# These would be the time differences observed by the GPS receiver.
# We'll assume the times have been adjusted relative to the first satellite.
=
# Initial guess for the receiver's position (x, y, z) and clock error (delta_t)
=
# Convert time delays to distances
= * # in meters
# Solve the system using least squares minimization
=
# Extract the solution
, , , =
# Convert the (x, y, z) solution to Latitude, Longitude, and Altitude
, , =